home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 38 / Amiga Format CD38 (1999-03-15)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-04].iso / -seriously_amiga- / misc / felix / source / global.h < prev    next >
C/C++ Source or Header  |  1999-01-25  |  1KB  |  73 lines

  1. //*************************************************************************//
  2. // Filename:    global.h
  3. // Autor:       Christian Taulien of Strange Intelligence
  4. // Purpose:     base include file.
  5. // Creation:    18. März 1998
  6. //*************************************************************************//
  7. #ifndef TAULIEN_GLOBAL_H
  8. #define TAULIEN_GLOBAL_H
  9.  
  10. #ifndef VERSION_S
  11. #define VERSION_S "39.7"
  12. #endif
  13.  
  14. #ifndef VERSION
  15. #define VERSION  39
  16. #endif
  17.  
  18. #ifndef REVISION
  19. #define REVISION 7
  20. #endif
  21.  
  22. #ifdef __MAXON__
  23. #define __HIMPEL__
  24. #define SAVEDS
  25. #endif
  26.  
  27. #ifdef __STORM__
  28. #undef __HIMPEL__
  29. #define __HIMPEL__
  30. #define SAVEDS __saveds
  31. #endif
  32.  
  33. #ifdef __SASC
  34. #define __GNUORSAS__
  35. #endif
  36.  
  37. #ifdef __GNUC__
  38. #define __GNUORSAS__
  39. #endif
  40.  
  41.  
  42. #ifdef __HIMPEL__
  43. #define ASM
  44. #define LibCall
  45. #endif
  46.  
  47. #ifdef __GNUORSAS__
  48. #define ASM    __asm
  49. #define SAVEDS __saveds
  50. #define LibCall
  51. #endif
  52.  
  53. #define REG(x) register __##x
  54.  
  55. #ifdef si_debug
  56. extern "C" KPutStr(char*);
  57. extern "C" KPrintF(char*, void*);
  58. void* params[10];
  59. #define TRACE(txt)\
  60.    KPutStr(__FUNC__ "  [");\
  61.    KPutStr(txt);\
  62.    KPutStr("]\n");
  63. #else
  64. #define TRACE(txt)
  65. #endif
  66.  
  67. #define SIFC_MAX(a,b) ((a)>(b) ? (a) : (b))
  68. #define SIFC_MIN(a,b) ((a)<(b) ? (a) : (b))
  69. #define SIFC_BETWEEN(v,a,b) ((v)>=SIFC_MIN((a),(b)) && (v)<=SIFC_MAX((a),(b)))
  70.  
  71. #endif // TAULIEN_GLOBAL_H
  72.  
  73.